{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3d36c4c3-6c9e-48b0-ad4a-f3f335271186",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import os.path\n",
    "import sys\n",
    "sys.path.append(os.path.abspath('..'))\n",
    "from datetime import datetime,timedelta\n",
    "import random\n",
    "import math\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import cnmaps\n",
    "from cnmaps import get_adm_maps, draw_maps\n",
    "from shapely.geometry import Point, Polygon\n",
    "import matplotlib.pyplot as plt\n",
    "import importlib\n",
    "import dateutil.parser"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "5e924eb7-dba6-46f4-bc20-7622c4c0b4b4",
   "metadata": {},
   "outputs": [],
   "source": [
    "df=pd.read_csv('./datas/Stations.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "281ccaf2-3036-4542-bb79-d5ecfb6a2024",
   "metadata": {},
   "outputs": [],
   "source": [
    "df['ProvinceCode']=df['Admin_Code_CHN'].apply(lambda x:str(x)[:2]+'0000')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "5b34fb74-d2fe-43fb-8ef1-d2a5923cc8a9",
   "metadata": {},
   "outputs": [],
   "source": [
    "df['CityCode']=df['Admin_Code_CHN'].apply(lambda x:str(x)[:4]+'00')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "d5f013f2-d7bf-4e6d-b1b1-ec4abcc603d7",
   "metadata": {},
   "outputs": [],
   "source": [
    "df['CntyCode']=df['Admin_Code_CHN']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "2cb3d18b-78e5-422a-9f4f-8e9f261bdf99",
   "metadata": {},
   "outputs": [],
   "source": [
    "df['Station_levl']=df['Station_Id_C'].apply(lambda x:11  if len(str(x))<6 else 14)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "9b7ec443-ca41-4020-b9e8-2387463c276a",
   "metadata": {},
   "outputs": [],
   "source": [
    "df['Alti']=np.round(np.random.random(len(df))*500,1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6d109d61-8d06-4afd-95ca-46814b8ead3f",
   "metadata": {},
   "outputs": [],
   "source": [
    "adminCodes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "c3491470-02a1-4052-9cc4-dae2084d6cc3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Station_Id_C', 'Lon', 'Lat', 'Province', 'City', 'Cnty', 'Town',\n",
       "       'Admin_Code_CHN', 'Town_code', 'ProvinceCode', 'CityCode', 'CntyCode',\n",
       "       'Station_levl', 'Alti'],\n",
       "      dtype='object')"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.columns"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "3456a774-f259-445e-a6a9-3346ac26b13f",
   "metadata": {},
   "outputs": [],
   "source": [
    "for c in ['Station_Id_C', 'Province', 'City', 'Cnty', 'Town','Admin_Code_CHN', 'Town_code', 'ProvinceCode', 'CityCode', 'CntyCode',]:\n",
    "    df[c]=df[c].apply(lambda x:str(x))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "7f3be105-4275-4cc2-8b2e-78498bc368fb",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0        110100\n",
       "1        110100\n",
       "2        110100\n",
       "3        110100\n",
       "4        110100\n",
       "          ...  \n",
       "10455    653100\n",
       "10456    653100\n",
       "10457    653100\n",
       "10458    653100\n",
       "10459    653200\n",
       "Name: CityCode, Length: 10460, dtype: object"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['CityCode']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "fab141e0-c205-49a5-a09e-1c903d6e3063",
   "metadata": {},
   "outputs": [],
   "source": [
    "df.to_csv('Stations.csv',index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "id": "69acab1e-d2a3-4692-9407-bb635da266f2",
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "p=df.groupby(['Province','Station_levl'])[['Province','Station_levl','Station_Id_C']].agg({\n",
    "    'Province':'first',\n",
    "    'Station_levl':'first',\n",
    "    'Station_Id_C':'first'\n",
    "}).reset_index(drop=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "id": "767870cc-2eec-4cf4-972e-f1fc52ae7196",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'Province': '[]', 'Station_Id_C': '56989'},\n",
       " {'Province': '上海市', 'Station_Id_C': '58361'},\n",
       " {'Province': '中华人民共和国', 'Station_Id_C': '58471'},\n",
       " {'Province': '云南省', 'Station_Id_C': '56444'},\n",
       " {'Province': '内蒙古自治区', 'Station_Id_C': '50425'},\n",
       " {'Province': '北京市', 'Station_Id_C': '54398'},\n",
       " {'Province': '吉林省', 'Station_Id_C': '50936'},\n",
       " {'Province': '四川省', 'Station_Id_C': '56038'},\n",
       " {'Province': '天津市', 'Station_Id_C': '54428'},\n",
       " {'Province': '宁夏回族自治区', 'Station_Id_C': '53518'},\n",
       " {'Province': '安徽省', 'Station_Id_C': '58015'},\n",
       " {'Province': '山东省', 'Station_Id_C': '54709'},\n",
       " {'Province': '山西省', 'Station_Id_C': '53478'},\n",
       " {'Province': '广东省', 'Station_Id_C': '57988'},\n",
       " {'Province': '广西壮族自治区', 'Station_Id_C': '57859'},\n",
       " {'Province': '新疆维吾尔自治区', 'Station_Id_C': '51053'},\n",
       " {'Province': '江苏省', 'Station_Id_C': '58012'},\n",
       " {'Province': '江西省', 'Station_Id_C': '57598'},\n",
       " {'Province': '河北省', 'Station_Id_C': '53392'},\n",
       " {'Province': '河南省', 'Station_Id_C': '53889'},\n",
       " {'Province': '浙江省', 'Station_Id_C': '58443'},\n",
       " {'Province': '海南省', 'Station_Id_C': '59758'},\n",
       " {'Province': '湖北省', 'Station_Id_C': '57249'},\n",
       " {'Province': '湖南省', 'Station_Id_C': '57544'},\n",
       " {'Province': '甘肃省', 'Station_Id_C': '52418'},\n",
       " {'Province': '福建省', 'Station_Id_C': '58724'},\n",
       " {'Province': '西藏自治区', 'Station_Id_C': '55125'},\n",
       " {'Province': '贵州省', 'Station_Id_C': '56598'},\n",
       " {'Province': '辽宁省', 'Station_Id_C': '54236'},\n",
       " {'Province': '重庆市', 'Station_Id_C': '57333'},\n",
       " {'Province': '陕西省', 'Station_Id_C': '53567'},\n",
       " {'Province': '青海省', 'Station_Id_C': '51886'},\n",
       " {'Province': '黑龙江省', 'Station_Id_C': '50136'}]"
      ]
     },
     "execution_count": 78,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "p[p['Station_levl']==11][['Province','Station_Id_C']].to_dict(orient='records')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "id": "b7b6d020-2e79-458c-8bcb-ff723a256fad",
   "metadata": {},
   "outputs": [],
   "source": [
    "p=[{'Province': '上海市', 'Station_Id_C': '58361'},\n",
    " {'Province': '中华人民共和国', 'Station_Id_C': '58471'},\n",
    " {'Province': '云南省', 'Station_Id_C': '56444'},\n",
    " {'Province': '内蒙古自治区', 'Station_Id_C': '50425'},\n",
    " {'Province': '北京市', 'Station_Id_C': '54398'},\n",
    " {'Province': '吉林省', 'Station_Id_C': '50936'},\n",
    " {'Province': '四川省', 'Station_Id_C': '56038'},\n",
    " {'Province': '天津市', 'Station_Id_C': '54428'},\n",
    " {'Province': '宁夏回族自治区', 'Station_Id_C': '53518'},\n",
    " {'Province': '安徽省', 'Station_Id_C': '58015'},\n",
    " {'Province': '山东省', 'Station_Id_C': '54709'},\n",
    " {'Province': '山西省', 'Station_Id_C': '53478'},\n",
    " {'Province': '广东省', 'Station_Id_C': '57988'},\n",
    " {'Province': '广西壮族自治区', 'Station_Id_C': '57859'},\n",
    " {'Province': '新疆维吾尔自治区', 'Station_Id_C': '51053'},\n",
    " {'Province': '江苏省', 'Station_Id_C': '58012'},\n",
    " {'Province': '江西省', 'Station_Id_C': '57598'},\n",
    " {'Province': '河北省', 'Station_Id_C': '53392'},\n",
    " {'Province': '河南省', 'Station_Id_C': '53889'},\n",
    " {'Province': '浙江省', 'Station_Id_C': '58443'},\n",
    " {'Province': '海南省', 'Station_Id_C': '59758'},\n",
    " {'Province': '湖北省', 'Station_Id_C': '57249'},\n",
    " {'Province': '湖南省', 'Station_Id_C': '57544'},\n",
    " {'Province': '甘肃省', 'Station_Id_C': '52418'},\n",
    " {'Province': '福建省', 'Station_Id_C': '58724'},\n",
    " {'Province': '西藏自治区', 'Station_Id_C': '55125'},\n",
    " {'Province': '贵州省', 'Station_Id_C': '56598'},\n",
    " {'Province': '辽宁省', 'Station_Id_C': '54236'},\n",
    " {'Province': '重庆市', 'Station_Id_C': '57333'},\n",
    " {'Province': '陕西省', 'Station_Id_C': '53567'},\n",
    " {'Province': '青海省', 'Station_Id_C': '51886'},\n",
    " {'Province': '黑龙江省', 'Station_Id_C': '50136'}]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "id": "00a570ed-b360-4766-ab4c-4fd755705ebd",
   "metadata": {},
   "outputs": [],
   "source": [
    "elementDict={\n",
    "    \"Station_Id_C\": {\"name\": \"区站号(字符)\", \"unit\": \"-\"},\n",
    "    \"Station_levl\": {\"name\": \"测站级别\", \"unit\": \"标识/代码表\"},\n",
    "    \"Lat\": {\"name\": \"纬度\", \"unit\": \"°\"},\n",
    "    \"Lon\": {\"name\": \"经度\", \"unit\": \"°\"},\n",
    "    \"Alti\": {\"name\": \"测站高度\", \"unit\": \"m\"},\n",
    "    \"Admin_Code_CHN\": {\"name\": \"行政编码\", \"unit\": \"标识/代码表\"},\n",
    "    \"V_ACODE_4SEARCH\": {\"name\": \"行政编码2\", \"unit\": \"-\"},\n",
    "    \"Town_code\": {\"name\": \"镇编码\", \"unit\": \"-\"},\n",
    "    \"City\": {\"name\": \"地市名\", \"unit\": \"-\"},\n",
    "    \"Station_Name\": {\"name\": \"站名\", \"unit\": \"-\"},\n",
    "    \"Cnty\": {\"name\": \"区县名\", \"unit\": \"-\"},\n",
    "    \"COUNTRYCODE\": {\"name\": \"国家代码\", \"unit\": \"-\"},\n",
    "    \"Country\": {\"name\": \"国家名称\", \"unit\": \"-\"},\n",
    "    \"NetCode\": {\"name\": \"站网代码\", \"unit\": \"-\"},\n",
    "    \"Province\": {\"name\": \"省名\", \"unit\": \"-\"},\n",
    "    \"REGIONCODE\": {\"name\": \"区域代码\", \"unit\": \"-\"},\n",
    "    \"Town\": {\"name\": \"乡镇名\", \"unit\": \"-\"},\n",
    "    \"DATA_ID\": {\"name\": \"资料标识\", \"unit\": \"-\"},\n",
    "    \"Datetime\": {\"name\": \"数据时间\", \"unit\": \"标识/代码表\"},\n",
    "    \"IYMDHM\": {\"name\": \"入库时间\", \"unit\": \"-\"},\n",
    "    \"RECORD_ID\": {\"name\": \"记录标识ID\", \"unit\": \"-\"},\n",
    "    \"D_RETAIN_ID\": {\"name\": \"记录标识\", \"unit\": \"-\"},\n",
    "    \"RYMDHM\": {\"name\": \"数据收到时间\", \"unit\": \"-\"},\n",
    "    \"D_SOURCE_ID\": {\"name\": \"数据来源\", \"unit\": \"-\"},\n",
    "    \"UPDATE_TIME\": {\"name\": \"数据更新时间\", \"unit\": \"-\"},\n",
    "    \"Q_PRE_Arti_Enc_CYC\": {\"name\": \"人工加密观测降水量描述时间周期质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WEP_Past_CYC\": {\"name\": \"过去天气描述时间周期质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q04080_05_1\": {\"name\": \"过去天气描述时间周期计算值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS\": {\"name\": \"气压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Sea\": {\"name\": \"海平面气压质量控制标志\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Change_3h\": {\"name\": \"3小时变压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Change_24h\": {\"name\": \"24小时变压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Max\": {\"name\": \"日最高本站气压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Max_OTime\": {\"name\": \"日最高本站气压出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Min\": {\"name\": \"日最低本站气压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRS_Min_OTime\": {\"name\": \"日最低本站气压出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D\": {\"name\": \"风向质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S\": {\"name\": \"风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Max\": {\"name\": \"日最大风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Max_OTime\": {\"name\": \"日最大风速出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Inst_Max\": {\"name\": \"日极大风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_INST_Max_OTime\": {\"name\": \"日极大风速出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_INST\": {\"name\": \"瞬时风向(角度)质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_INST\": {\"name\": \"瞬时风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_INST_Max\": {\"name\": \"日极大风速的风向质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_Avg_2mi\": {\"name\": \"2分钟平均风向质控码值\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Avg_2mi\": {\"name\": \"2分钟平均风速成质控码值\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_Avg_10mi\": {\"name\": \"10分钟风向质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Avg_10mi\": {\"name\": \"10分钟平均风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_S_Max\": {\"name\": \"日最大风速的风向质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_Inst_Max_6h\": {\"name\": \"过去6小时极大瞬时风向质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_D_Inst_Max_12h\": {\"name\": \"过去12小时极大瞬时风向质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Inst_Max_6h\": {\"name\": \"过去6小时极大瞬时风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WIN_S_Inst_Max_12h\": {\"name\": \"过去12小时极大瞬时风速质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM\": {\"name\": \"温度/气温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_DPT\": {\"name\": \"露点温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_Max\": {\"name\": \"日最高气温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_Max_OTime\": {\"name\": \"日最高气温出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_Min\": {\"name\": \"1小时内最低气温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_Min_OTime\": {\"name\": \"小时内最低气温出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_Min_12h\": {\"name\": \"过去12小时最低地面温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_Max_24h\": {\"name\": \"过去24小时最高气温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_Min_24h\": {\"name\": \"过去24小时最低气温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_5cm\": {\"name\": \"5cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_10cm\": {\"name\": \"10cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_15cm\": {\"name\": \"15cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_20cm\": {\"name\": \"20cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_40Cm\": {\"name\": \"40cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_80cm\": {\"name\": \"80cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_160cm\": {\"name\": \"160cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_320cm\": {\"name\": \"320cm地温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST\": {\"name\": \"地面温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_Min\": {\"name\": \"日最低地面温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_Min_OTime\": {\"name\": \"日最低地面温度出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_Max\": {\"name\": \"日最高地面温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GST_Max_Otime\": {\"name\": \"日最高地面温度出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_LGST\": {\"name\": \"草面（雪面）温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_LGST_Max\": {\"name\": \"日草面（雪面）最高温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_LGST_Max_OTime\": {\"name\": \"日草面（雪面）最高温度出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_LGST_Min\": {\"name\": \"日草面（雪面）最低温度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_LGST_Min_OTime\": {\"name\": \"日草面（雪面）最低温度出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_TEM_ChANGE_24h\": {\"name\": \"24小时变温质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_RHU\": {\"name\": \"相对湿度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_VAP\": {\"name\": \"水汽压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_RHU_Min\": {\"name\": \"最小相对湿度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_RHU_Min_OTIME\": {\"name\": \"最小相对湿度出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRE\": {\"name\": \"分钟降水量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_Snow_Depth\": {\"name\": \"积雪深度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRE_1h\": {\"name\": \"小时降水量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRE_3h\": {\"name\": \"过去3小时降水量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRE_6h\": {\"name\": \"过去6小时降水量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRE_12h\": {\"name\": \"过去12小时降水量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_PRE_24h\": {\"name\": \"24小时降水量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EVP_Big\": {\"name\": \"日蒸发量（大型）质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_Snow_PRS\": {\"name\": \"积雪雪压质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_VIS\": {\"name\": \"水平能见度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_VIS_HOR_1MI\": {\"name\": \"1分钟平均水平能见度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_VIS_HOR_10MI\": {\"name\": \"10分钟平均水平能见度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WEP_Now\": {\"name\": \"现在天气质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q20003_1\": {\"name\": \"现在天气计算值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WEP_Past_1\": {\"name\": \"过去天气1质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q20004_1\": {\"name\": \"过去天气1计算值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_WEP_Past_2\": {\"name\": \"过去天气2质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q20005_1\": {\"name\": \"过去天气2计算值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Cov\": {\"name\": \"总云量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_COV_LM\": {\"name\": \"低云或中云的云量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Height_LoM\": {\"name\": \"云底高度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Cov_Low\": {\"name\": \"低云量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_VIS_Min\": {\"name\": \"日最小水平能见度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_VIS_Min_OTime\": {\"name\": \"日最小水平能见度出现时间质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_SCO\": {\"name\": \"地面状态质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q20214\": {\"name\": \"冰雹的最大重量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_Dew\": {\"name\": \"露是否出现质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_Frost\": {\"name\": \"霜是否出现质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_ICE\": {\"name\": \"结冰是否出现质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_GSS\": {\"name\": \"积雪是否出现质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_SoRi\": {\"name\": \"雾凇是否出现质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_Glaze\": {\"name\": \"雨凇是否出现质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q20303_1\": {\"name\": \"天气现象摘要计算值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q20304_1\": {\"name\": \"天气现象记录计算值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICE\": {\"name\": \"电线积冰-现象质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICET_NS\": {\"name\": \"电线积冰-南北方向厚度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICET_WE\": {\"name\": \"电线积冰-东西方向厚度质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICEW_NS\": {\"name\": \"电线积冰-南北方向重量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICEW_WE\": {\"name\": \"电线积冰-东西方向重量质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICED_NS\": {\"name\": \"电线积冰-南北方向直径质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_EICED_WE\": {\"name\": \"电线积冰-东西方向直径质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_FRS_1st_Top\": {\"name\": \"第一冻土层上界值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_FRS_2nd_Top\": {\"name\": \"第二冻土层上界值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_FRS_1st_Bot\": {\"name\": \"第一冻土层下界值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_FRS_2nd_Bot\": {\"name\": \"第二冻土层下界值质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_FOME_1\": {\"name\": \"云状1质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_2\": {\"name\": \"云状2质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_3\": {\"name\": \"云状3质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_4\": {\"name\": \"云状4质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_FOME_5\": {\"name\": \"云状5质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_FOME_6\": {\"name\": \"云状6质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_FOME_7\": {\"name\": \"云状7质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_8\": {\"name\": \"云状8质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_Low\": {\"name\": \"低云状质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_MID\": {\"name\": \"中云状质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Q_CLO_Fome_High\": {\"name\": \"高云状质控码\", \"unit\": \"标识/代码表\"},\n",
    "    \"Station_Id_d\": {\"name\": \"区站号/观测平台标识(数字)\", \"unit\": \"-\"},\n",
    "    \"Station_Type\": {\"name\": \"测站类型\", \"unit\": \"标识/代码表\"},\n",
    "    \"V02175\": {\"name\": \"降水测量方法\", \"unit\": \"标识/代码表\"},\n",
    "    \"V02176\": {\"name\": \"地面状态测量方法\", \"unit\": \"-\"},\n",
    "    \"V02177\": {\"name\": \"积雪深度的测量方法\", \"unit\": \"标识/代码表\"},\n",
    "    \"V02180\": {\"name\": \"天气现象检测系统\", \"unit\": \"标识/代码表\"},\n",
    "    \"V02183\": {\"name\": \"云探测系统\", \"unit\": \"标识/代码表\"},\n",
    "    \"Year\": {\"name\": \"年\", \"unit\": \"-\"},\n",
    "    \"Mon\": {\"name\": \"月\", \"unit\": \"-\"},\n",
    "    \"Day\": {\"name\": \"日\", \"unit\": \"-\"},\n",
    "    \"Hour\": {\"name\": \"时\", \"unit\": \"时\"},\n",
    "    \"PRE_Arti_Enc_CYC\": {\"name\": \"人工加密观测降水量描述周期\", \"unit\": \"hour\"},\n",
    "    \"WEP_Past_CYC\": {\"name\": \"过去天气描述事件周期\", \"unit\": \"hour\"},\n",
    "    \"V04080_05_1\": {\"name\": \"过去天气描述时间周期计算值\", \"unit\": \"-\"},\n",
    "    \"PRS_Sensor_Alti\": {\"name\": \"气压传感器海拔高度\", \"unit\": \"m\"},\n",
    "    \"TEM_RHU_Sensor_Heigh\": {\"name\": \"温湿传感器距地高度\", \"unit\": \"m\"},\n",
    "    \"VIS_Sensor_Heigh\": {\"name\": \"能见度传感器距地高度\", \"unit\": \"m\"},\n",
    "    \"WIN_S_Sensor_Heigh\": {\"name\": \"风速传感器距地面高度\", \"unit\": \"m\"},\n",
    "    \"V08010\": {\"name\": \"地面限定符（温度数据）\", \"unit\": \"标识/代码表\"},\n",
    "    \"PRS\": {\"name\": \"气压\", \"unit\": \"hPa\"},\n",
    "    \"PRS_Sea\": {\"name\": \"海平面气压\", \"unit\": \"hPa\"},\n",
    "    \"PRS_Change_3h\": {\"name\": \"3小时变压\", \"unit\": \"hPa\"},\n",
    "    \"PRS_Change_24h\": {\"name\": \"24小时变压\", \"unit\": \"hPa\"},\n",
    "    \"PRS_Max\": {\"name\": \"最高本站气压\", \"unit\": \"hPa\"},\n",
    "    \"PRS_Max_OTime\": {\"name\": \"最高本站气压出现时间\", \"unit\": \"-\"},\n",
    "    \"PRS_Min\": {\"name\": \"最低本站气压\", \"unit\": \"hPa\"},\n",
    "    \"PRS_Min_OTime\": {\"name\": \"最低本站气压出现时间\", \"unit\": \"-\"},\n",
    "    \"WIN_D\": {\"name\": \"风向\", \"unit\": \"°\"},\n",
    "    \"WIN_S\": {\"name\": \"风速\", \"unit\": \"m·s-1\"},\n",
    "    \"WIN_S_Max\": {\"name\": \"最大风速\", \"unit\": \"米/秒\"},\n",
    "    \"WIN_S_Max_OTime\": {\"name\": \"最大风速出现时间\", \"unit\": \"-\"},\n",
    "    \"WIN_S_Inst_Max\": {\"name\": \"极大风速\", \"unit\": \"米/秒\"},\n",
    "    \"WIN_S_INST_Max_OTime\": {\"name\": \"极大风速出现时间\", \"unit\": \"-\"},\n",
    "    \"WIN_D_INST\": {\"name\": \"瞬时风向(角度)\", \"unit\": \"°\"},\n",
    "    \"WIN_S_INST\": {\"name\": \"瞬时风速\", \"unit\": \"米/秒\"},\n",
    "    \"WIN_D_INST_Max\": {\"name\": \"极大风速的风向(角度)\", \"unit\": \"°\"},\n",
    "    \"WIN_D_Avg_2mi\": {\"name\": \"2分钟平均风向(角度)\", \"unit\": \"°\"},\n",
    "    \"WIN_S_Avg_2mi\": {\"name\": \"2分钟平均风速\", \"unit\": \"m-s\"},\n",
    "    \"WIN_D_Avg_10mi\": {\"name\": \"10分钟平均风向(角度)\", \"unit\": \"°\"},\n",
    "    \"WIN_S_Avg_10mi\": {\"name\": \"10分钟平均风速\", \"unit\": \"m-s\"},\n",
    "    \"WIN_D_S_Max\": {\"name\": \"日最大风速的风向(角度)\", \"unit\": \"°\"},\n",
    "    \"WIN_D_Inst_Max_6h\": {\"name\": \"过去6小时极大瞬时风向\", \"unit\": \"°\"},\n",
    "    \"WIN_D_Inst_Max_12h\": {\"name\": \"过去12小时极大瞬时风向\", \"unit\": \"°\"},\n",
    "    \"WIN_S_Inst_Max_6h\": {\"name\": \"过去6小时极大瞬时风速\", \"unit\": \"m-s\"},\n",
    "    \"WIN_S_Inst_Max_12h\": {\"name\": \"过去12小时极大瞬时风速\", \"unit\": \"m-s\"},\n",
    "    \"TEM\": {\"name\": \"温度/气温\", \"unit\": \"℃\"},\n",
    "    \"DPT\": {\"name\": \"露点温度\", \"unit\": \"℃\"},\n",
    "    \"TEM_Max\": {\"name\": \"最高气温\", \"unit\": \"℃\"},\n",
    "    \"TEM_Max_OTime\": {\"name\": \"最高气温出现时间\", \"unit\": \"-\"},\n",
    "    \"TEM_Min\": {\"name\": \"最低气温\", \"unit\": \"℃\"},\n",
    "    \"TEM_Min_OTime\": {\"name\": \"最低气温出现时间\", \"unit\": \"-\"},\n",
    "    \"GST_Min_12h\": {\"name\": \"过去12小时地面最低温度\", \"unit\": \"℃\"},\n",
    "    \"TEM_Max_24h\": {\"name\": \"过去24小时最高气温\", \"unit\": \"℃\"},\n",
    "    \"TEM_Min_24h\": {\"name\": \"过去24小时最低气温\", \"unit\": \"℃\"},\n",
    "    \"GST_5cm\": {\"name\": \"5cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_10cm\": {\"name\": \"10cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_15cm\": {\"name\": \"15cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_20cm\": {\"name\": \"20cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_40Cm\": {\"name\": \"40cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_80cm\": {\"name\": \"80cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_160cm\": {\"name\": \"160cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST_320cm\": {\"name\": \"320cm地温\", \"unit\": \"℃\"},\n",
    "    \"GST\": {\"name\": \"地面温度\", \"unit\": \"℃\"},\n",
    "    \"GST_Min\": {\"name\": \"最低地面温度\", \"unit\": \"℃\"},\n",
    "    \"GST_Min_OTime\": {\"name\": \"最低地面温度出现时间\", \"unit\": \"-\"},\n",
    "    \"GST_Max\": {\"name\": \"最高地面温度\", \"unit\": \"℃\"},\n",
    "    \"GST_Max_Otime\": {\"name\": \"最高地面温度出现时间\", \"unit\": \"-\"},\n",
    "    \"LGST\": {\"name\": \"草面(雪面)温度\", \"unit\": \"℃\"},\n",
    "    \"LGST_Max\": {\"name\": \"草面(雪面)最高温度\", \"unit\": \"℃\"},\n",
    "    \"LGST_Max_OTime\": {\"name\": \"草面(雪面)最高温度出现时间\", \"unit\": \"-\"},\n",
    "    \"LGST_Min\": {\"name\": \"草面(雪面)最低温度\", \"unit\": \"℃\"},\n",
    "    \"LGST_Min_OTime\": {\"name\": \"草面(雪面)最低温度出现时间\", \"unit\": \"-\"},\n",
    "    \"TEM_ChANGE_24h\": {\"name\": \"过去24小时变温\", \"unit\": \"℃\"},\n",
    "    \"RHU\": {\"name\": \"相对湿度\", \"unit\": \"%\"},\n",
    "    \"VAP\": {\"name\": \"水汽压\", \"unit\": \"hPa\"},\n",
    "    \"RHU_Min\": {\"name\": \"最小相对湿度\", \"unit\": \"%\"},\n",
    "    \"RHU_Min_OTIME\": {\"name\": \"最小相对湿度出现时间\", \"unit\": \"-\"},\n",
    "    \"PRE\": {\"name\": \"降水量\", \"unit\": \"mm\"},\n",
    "    \"Snow_Depth\": {\"name\": \"积雪深度计算值\", \"unit\": \"cm\"},\n",
    "    \"PRE_1h\": {\"name\": \"过去1小时降水量\", \"unit\": \"mm\"},\n",
    "    \"PRE_3h\": {\"name\": \"过去3小时降水量\", \"unit\": \"mm\"},\n",
    "    \"PRE_6h\": {\"name\": \"过去6小时降水量\", \"unit\": \"mm\"},\n",
    "    \"PRE_12h\": {\"name\": \"过去12小时降水量\", \"unit\": \"mm\"},\n",
    "    \"PRE_24h\": {\"name\": \"过去24小时降水量\", \"unit\": \"mm\"},\n",
    "    \"EVP_Big\": {\"name\": \"蒸发(大型)\", \"unit\": \"mm\"},\n",
    "    \"V13196\": {\"name\": \"蒸发水位\", \"unit\": \"-\"},\n",
    "    \"Snow_PRS\": {\"name\": \"积雪雪压\", \"unit\": \"g/cm2\"},\n",
    "    \"VIS\": {\"name\": \"水平能见度(人工)\", \"unit\": \"m\"},\n",
    "    \"VIS_HOR_1MI\": {\"name\": \"1分钟平均能见度\", \"unit\": \"m\"},\n",
    "    \"VIS_HOR_10MI\": {\"name\": \"10分钟平均能见度\", \"unit\": \"m\"},\n",
    "    \"WEP_Now\": {\"name\": \"现在天气\", \"unit\": \"标识/代码表\"},\n",
    "    \"V20003_1\": {\"name\": \"现在天气计算值\", \"unit\": \"-\"},\n",
    "    \"WEP_Past_1\": {\"name\": \"过去天气1\", \"unit\": \"标识/代码表\"},\n",
    "    \"V20004_1\": {\"name\": \"过去天气1计算值\", \"unit\": \"-\"},\n",
    "    \"WEP_Past_2\": {\"name\": \"过去天气2\", \"unit\": \"标识/代码表\"},\n",
    "    \"V20005_1\": {\"name\": \"过去天气2计算值\", \"unit\": \"-\"},\n",
    "    \"CLO_Cov\": {\"name\": \"总云量计算值\", \"unit\": \"%\"},\n",
    "    \"CLO_COV_LM\": {\"name\": \"云量(低云或中云)\", \"unit\": \"%\"},\n",
    "    \"CLO_Height_LoM\": {\"name\": \"云底高度计算值\", \"unit\": \"m\"},\n",
    "    \"CLO_Cov_Low\": {\"name\": \"低云量\", \"unit\": \"%\"},\n",
    "    \"VIS_Min\": {\"name\": \"最小水平能见度\", \"unit\": \"m\"},\n",
    "    \"VIS_Min_OTime\": {\"name\": \"最小水平能见度出现时间\", \"unit\": \"-\"},\n",
    "    \"SCO\": {\"name\": \"地面状态\", \"unit\": \"标识/代码表\"},\n",
    "    \"V20214\": {\"name\": \"冰雹重量\", \"unit\": \"-\"},\n",
    "    \"Dew\": {\"name\": \"露是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"Frost\": {\"name\": \"霜是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"ICE\": {\"name\": \"结冰是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"GSS\": {\"name\": \"积雪是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"SoRi\": {\"name\": \"雾凇是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"Glaze\": {\"name\": \"雨凇是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"V20303_1\": {\"name\": \"天气现象摘要计算值\", \"unit\": \"-\"},\n",
    "    \"WEP_Record\": {\"name\": \"天气现象记录\", \"unit\": \"-\"},\n",
    "    \"V20304_1\": {\"name\": \"天气现象记录计算值\", \"unit\": \"-\"},\n",
    "    \"EICE\": {\"name\": \"电线积冰-现象是否出现计算值\", \"unit\": \"标识/代码表\"},\n",
    "    \"EICET_NS\": {\"name\": \"电线积冰-南北方向厚度\", \"unit\": \"m\"},\n",
    "    \"EICET_WE\": {\"name\": \"电线积冰-东西方向厚度\", \"unit\": \"m\"},\n",
    "    \"EICEW_NS\": {\"name\": \"电线积冰-南北方向重量\", \"unit\": \"1g/m\"},\n",
    "    \"EICEW_WE\": {\"name\": \"电线积冰-东西方向重量\", \"unit\": \"1g/m\"},\n",
    "    \"EICED_NS\": {\"name\": \"电线积冰-南北方向直径\", \"unit\": \"m\"},\n",
    "    \"EICED_WE\": {\"name\": \"电线积冰-东西方向直径\", \"unit\": \"m\"},\n",
    "    \"FRS_1st_Top\": {\"name\": \"第一冻土层上界值计算值\", \"unit\": \"cm\"},\n",
    "    \"FRS_2nd_Top\": {\"name\": \"第二冻土层上界值计算值\", \"unit\": \"cm\"},\n",
    "    \"FRS_1st_Bot\": {\"name\": \"第一冻土层下界值计算值\", \"unit\": \"cm\"},\n",
    "    \"FRS_2nd_Bot\": {\"name\": \"第二冻土层下界值计算值\", \"unit\": \"cm\"},\n",
    "    \"CLO_FOME_1\": {\"name\": \"云状1\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_Fome_2\": {\"name\": \"云状2\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_Fome_3\": {\"name\": \"云状3\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_Fome_4\": {\"name\": \"云状4\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_FOME_5\": {\"name\": \"云状5\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_FOME_6\": {\"name\": \"云状6\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_FOME_7\": {\"name\": \"云状7\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_FOME_8\": {\"name\": \"云状8\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_Fome_Low\": {\"name\": \"低云状\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_Fome_MID\": {\"name\": \"中云状\", \"unit\": \"标识/代码表\"},\n",
    "    \"CLO_Fome_High\": {\"name\": \"高云状\", \"unit\": \"标识/代码表\"},\n",
    "    \"REP_CORR_ID\": {\"name\": \"更正报标志\", \"unit\": \"-\"},\n",
    "    \"RETAIN1\": {\"name\": \"保留字段1\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN10\": {\"name\": \"保留字段10\", \"unit\": \"-\"},\n",
    "    \"RETAIN2\": {\"name\": \"保留字段2\", \"unit\": \"-\"},\n",
    "    \"RETAIN3\": {\"name\": \"保留字段3\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN4\": {\"name\": \"保留字段4\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN5\": {\"name\": \"保留字段5\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN6\": {\"name\": \"保留字段6\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN7\": {\"name\": \"保留字段7\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN8\": {\"name\": \"保留字段8\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN9\": {\"name\": \"保留字段9\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD1\": {\"name\": \"保留字段旧1\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD10\": {\"name\": \"保留字段旧10\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD11\": {\"name\": \"保留字段旧11\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD12\": {\"name\": \"保留字段旧12\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD13\": {\"name\": \"保留字段旧13\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD14\": {\"name\": \"保留字段旧14\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD2\": {\"name\": \"保留字段旧2\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD3\": {\"name\": \"保留字段旧3\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD4\": {\"name\": \"保留字段旧4\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD5\": {\"name\": \"保留字段旧5\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD6\": {\"name\": \"保留字段旧6\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD7\": {\"name\": \"保留字段旧7\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD8\": {\"name\": \"保留字段旧8\", \"unit\": \"-\"},\n",
    "    \"V_RETAIN_OLD9\": {\"name\": \"保留字段旧9\", \"unit\": \"-\"}\n",
    "}    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "id": "8f685be5-ce8e-422c-b36c-467634997082",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Station_Id_C': '区站号(字符)',\n",
       " 'Station_levl': '测站级别',\n",
       " 'Lat': '纬度',\n",
       " 'Lon': '经度',\n",
       " 'Alti': '测站高度',\n",
       " 'Admin_Code_CHN': '行政编码',\n",
       " 'V_ACODE_4SEARCH': '行政编码2',\n",
       " 'Town_code': '镇编码',\n",
       " 'City': '地市名',\n",
       " 'Station_Name': '站名',\n",
       " 'Cnty': '区县名',\n",
       " 'COUNTRYCODE': '国家代码',\n",
       " 'Country': '国家名称',\n",
       " 'NetCode': '站网代码',\n",
       " 'Province': '省名',\n",
       " 'REGIONCODE': '区域代码',\n",
       " 'Town': '乡镇名',\n",
       " 'DATA_ID': '资料标识',\n",
       " 'Datetime': '数据时间',\n",
       " 'IYMDHM': '入库时间',\n",
       " 'RECORD_ID': '记录标识ID',\n",
       " 'D_RETAIN_ID': '记录标识',\n",
       " 'RYMDHM': '数据收到时间',\n",
       " 'D_SOURCE_ID': '数据来源',\n",
       " 'UPDATE_TIME': '数据更新时间',\n",
       " 'Q_PRE_Arti_Enc_CYC': '人工加密观测降水量描述时间周期质控码',\n",
       " 'Q_WEP_Past_CYC': '过去天气描述时间周期质控码',\n",
       " 'Q04080_05_1': '过去天气描述时间周期计算值质控码',\n",
       " 'Q_PRS': '气压质控码',\n",
       " 'Q_PRS_Sea': '海平面气压质量控制标志',\n",
       " 'Q_PRS_Change_3h': '3小时变压质控码',\n",
       " 'Q_PRS_Change_24h': '24小时变压质控码',\n",
       " 'Q_PRS_Max': '日最高本站气压质控码',\n",
       " 'Q_PRS_Max_OTime': '日最高本站气压出现时间质控码',\n",
       " 'Q_PRS_Min': '日最低本站气压质控码',\n",
       " 'Q_PRS_Min_OTime': '日最低本站气压出现时间质控码',\n",
       " 'Q_WIN_D': '风向质控码',\n",
       " 'Q_WIN_S': '风速质控码',\n",
       " 'Q_WIN_S_Max': '日最大风速质控码',\n",
       " 'Q_WIN_S_Max_OTime': '日最大风速出现时间质控码',\n",
       " 'Q_WIN_S_Inst_Max': '日极大风速质控码',\n",
       " 'Q_WIN_S_INST_Max_OTime': '日极大风速出现时间质控码',\n",
       " 'Q_WIN_D_INST': '瞬时风向(角度)质控码',\n",
       " 'Q_WIN_S_INST': '瞬时风速质控码',\n",
       " 'Q_WIN_D_INST_Max': '日极大风速的风向质控码',\n",
       " 'Q_WIN_D_Avg_2mi': '2分钟平均风向质控码值',\n",
       " 'Q_WIN_S_Avg_2mi': '2分钟平均风速成质控码值',\n",
       " 'Q_WIN_D_Avg_10mi': '10分钟风向质控码',\n",
       " 'Q_WIN_S_Avg_10mi': '10分钟平均风速质控码',\n",
       " 'Q_WIN_D_S_Max': '日最大风速的风向质控码',\n",
       " 'Q_WIN_D_Inst_Max_6h': '过去6小时极大瞬时风向质控码',\n",
       " 'Q_WIN_D_Inst_Max_12h': '过去12小时极大瞬时风向质控码',\n",
       " 'Q_WIN_S_Inst_Max_6h': '过去6小时极大瞬时风速质控码',\n",
       " 'Q_WIN_S_Inst_Max_12h': '过去12小时极大瞬时风速质控码',\n",
       " 'Q_TEM': '温度/气温质控码',\n",
       " 'Q_DPT': '露点温度质控码',\n",
       " 'Q_TEM_Max': '日最高气温质控码',\n",
       " 'Q_TEM_Max_OTime': '日最高气温出现时间质控码',\n",
       " 'Q_TEM_Min': '1小时内最低气温质控码',\n",
       " 'Q_TEM_Min_OTime': '小时内最低气温出现时间质控码',\n",
       " 'Q_GST_Min_12h': '过去12小时最低地面温度质控码',\n",
       " 'Q_TEM_Max_24h': '过去24小时最高气温质控码',\n",
       " 'Q_TEM_Min_24h': '过去24小时最低气温质控码',\n",
       " 'Q_GST_5cm': '5cm地温质控码',\n",
       " 'Q_GST_10cm': '10cm地温质控码',\n",
       " 'Q_GST_15cm': '15cm地温质控码',\n",
       " 'Q_GST_20cm': '20cm地温质控码',\n",
       " 'Q_GST_40Cm': '40cm地温质控码',\n",
       " 'Q_GST_80cm': '80cm地温质控码',\n",
       " 'Q_GST_160cm': '160cm地温质控码',\n",
       " 'Q_GST_320cm': '320cm地温质控码',\n",
       " 'Q_GST': '地面温度质控码',\n",
       " 'Q_GST_Min': '日最低地面温度质控码',\n",
       " 'Q_GST_Min_OTime': '日最低地面温度出现时间质控码',\n",
       " 'Q_GST_Max': '日最高地面温度质控码',\n",
       " 'Q_GST_Max_Otime': '日最高地面温度出现时间质控码',\n",
       " 'Q_LGST': '草面（雪面）温度质控码',\n",
       " 'Q_LGST_Max': '日草面（雪面）最高温度质控码',\n",
       " 'Q_LGST_Max_OTime': '日草面（雪面）最高温度出现时间质控码',\n",
       " 'Q_LGST_Min': '日草面（雪面）最低温度质控码',\n",
       " 'Q_LGST_Min_OTime': '日草面（雪面）最低温度出现时间质控码',\n",
       " 'Q_TEM_ChANGE_24h': '24小时变温质控码',\n",
       " 'Q_RHU': '相对湿度质控码',\n",
       " 'Q_VAP': '水汽压质控码',\n",
       " 'Q_RHU_Min': '最小相对湿度质控码',\n",
       " 'Q_RHU_Min_OTIME': '最小相对湿度出现时间质控码',\n",
       " 'Q_PRE': '分钟降水量质控码',\n",
       " 'Q_Snow_Depth': '积雪深度质控码',\n",
       " 'Q_PRE_1h': '小时降水量质控码',\n",
       " 'Q_PRE_3h': '过去3小时降水量质控码',\n",
       " 'Q_PRE_6h': '过去6小时降水量质控码',\n",
       " 'Q_PRE_12h': '过去12小时降水量质控码',\n",
       " 'Q_PRE_24h': '24小时降水量质控码',\n",
       " 'Q_EVP_Big': '日蒸发量（大型）质控码',\n",
       " 'Q_Snow_PRS': '积雪雪压质控码',\n",
       " 'Q_VIS': '水平能见度质控码',\n",
       " 'Q_VIS_HOR_1MI': '1分钟平均水平能见度质控码',\n",
       " 'Q_VIS_HOR_10MI': '10分钟平均水平能见度质控码',\n",
       " 'Q_WEP_Now': '现在天气质控码',\n",
       " 'Q20003_1': '现在天气计算值质控码',\n",
       " 'Q_WEP_Past_1': '过去天气1质控码',\n",
       " 'Q20004_1': '过去天气1计算值质控码',\n",
       " 'Q_WEP_Past_2': '过去天气2质控码',\n",
       " 'Q20005_1': '过去天气2计算值质控码',\n",
       " 'Q_CLO_Cov': '总云量质控码',\n",
       " 'Q_CLO_COV_LM': '低云或中云的云量质控码',\n",
       " 'Q_CLO_Height_LoM': '云底高度质控码',\n",
       " 'Q_CLO_Cov_Low': '低云量质控码',\n",
       " 'Q_VIS_Min': '日最小水平能见度质控码',\n",
       " 'Q_VIS_Min_OTime': '日最小水平能见度出现时间质控码',\n",
       " 'Q_SCO': '地面状态质控码',\n",
       " 'Q20214': '冰雹的最大重量质控码',\n",
       " 'Q_Dew': '露是否出现质控码',\n",
       " 'Q_Frost': '霜是否出现质控码',\n",
       " 'Q_ICE': '结冰是否出现质控码',\n",
       " 'Q_GSS': '积雪是否出现质控码',\n",
       " 'Q_SoRi': '雾凇是否出现质控码',\n",
       " 'Q_Glaze': '雨凇是否出现质控码',\n",
       " 'Q20303_1': '天气现象摘要计算值质控码',\n",
       " 'Q20304_1': '天气现象记录计算值质控码',\n",
       " 'Q_EICE': '电线积冰-现象质控码',\n",
       " 'Q_EICET_NS': '电线积冰-南北方向厚度质控码',\n",
       " 'Q_EICET_WE': '电线积冰-东西方向厚度质控码',\n",
       " 'Q_EICEW_NS': '电线积冰-南北方向重量质控码',\n",
       " 'Q_EICEW_WE': '电线积冰-东西方向重量质控码',\n",
       " 'Q_EICED_NS': '电线积冰-南北方向直径质控码',\n",
       " 'Q_EICED_WE': '电线积冰-东西方向直径质控码',\n",
       " 'Q_FRS_1st_Top': '第一冻土层上界值质控码',\n",
       " 'Q_FRS_2nd_Top': '第二冻土层上界值质控码',\n",
       " 'Q_FRS_1st_Bot': '第一冻土层下界值质控码',\n",
       " 'Q_FRS_2nd_Bot': '第二冻土层下界值质控码',\n",
       " 'Q_CLO_FOME_1': '云状1质控码',\n",
       " 'Q_CLO_Fome_2': '云状2质控码',\n",
       " 'Q_CLO_Fome_3': '云状3质控码',\n",
       " 'Q_CLO_Fome_4': '云状4质控码',\n",
       " 'Q_CLO_FOME_5': '云状5质控码',\n",
       " 'Q_CLO_FOME_6': '云状6质控码',\n",
       " 'Q_CLO_FOME_7': '云状7质控码',\n",
       " 'Q_CLO_Fome_8': '云状8质控码',\n",
       " 'Q_CLO_Fome_Low': '低云状质控码',\n",
       " 'Q_CLO_Fome_MID': '中云状质控码',\n",
       " 'Q_CLO_Fome_High': '高云状质控码',\n",
       " 'Station_Id_d': '区站号/观测平台标识(数字)',\n",
       " 'Station_Type': '测站类型',\n",
       " 'V02175': '降水测量方法',\n",
       " 'V02176': '地面状态测量方法',\n",
       " 'V02177': '积雪深度的测量方法',\n",
       " 'V02180': '天气现象检测系统',\n",
       " 'V02183': '云探测系统',\n",
       " 'Year': '年',\n",
       " 'Mon': '月',\n",
       " 'Day': '日',\n",
       " 'Hour': '时',\n",
       " 'PRE_Arti_Enc_CYC': '人工加密观测降水量描述周期',\n",
       " 'WEP_Past_CYC': '过去天气描述事件周期',\n",
       " 'V04080_05_1': '过去天气描述时间周期计算值',\n",
       " 'PRS_Sensor_Alti': '气压传感器海拔高度',\n",
       " 'TEM_RHU_Sensor_Heigh': '温湿传感器距地高度',\n",
       " 'VIS_Sensor_Heigh': '能见度传感器距地高度',\n",
       " 'WIN_S_Sensor_Heigh': '风速传感器距地面高度',\n",
       " 'V08010': '地面限定符（温度数据）',\n",
       " 'PRS': '气压',\n",
       " 'PRS_Sea': '海平面气压',\n",
       " 'PRS_Change_3h': '3小时变压',\n",
       " 'PRS_Change_24h': '24小时变压',\n",
       " 'PRS_Max': '最高本站气压',\n",
       " 'PRS_Max_OTime': '最高本站气压出现时间',\n",
       " 'PRS_Min': '最低本站气压',\n",
       " 'PRS_Min_OTime': '最低本站气压出现时间',\n",
       " 'WIN_D': '风向',\n",
       " 'WIN_S': '风速',\n",
       " 'WIN_S_Max': '最大风速',\n",
       " 'WIN_S_Max_OTime': '最大风速出现时间',\n",
       " 'WIN_S_Inst_Max': '极大风速',\n",
       " 'WIN_S_INST_Max_OTime': '极大风速出现时间',\n",
       " 'WIN_D_INST': '瞬时风向(角度)',\n",
       " 'WIN_S_INST': '瞬时风速',\n",
       " 'WIN_D_INST_Max': '极大风速的风向(角度)',\n",
       " 'WIN_D_Avg_2mi': '2分钟平均风向(角度)',\n",
       " 'WIN_S_Avg_2mi': '2分钟平均风速',\n",
       " 'WIN_D_Avg_10mi': '10分钟平均风向(角度)',\n",
       " 'WIN_S_Avg_10mi': '10分钟平均风速',\n",
       " 'WIN_D_S_Max': '日最大风速的风向(角度)',\n",
       " 'WIN_D_Inst_Max_6h': '过去6小时极大瞬时风向',\n",
       " 'WIN_D_Inst_Max_12h': '过去12小时极大瞬时风向',\n",
       " 'WIN_S_Inst_Max_6h': '过去6小时极大瞬时风速',\n",
       " 'WIN_S_Inst_Max_12h': '过去12小时极大瞬时风速',\n",
       " 'TEM': '温度/气温',\n",
       " 'DPT': '露点温度',\n",
       " 'TEM_Max': '最高气温',\n",
       " 'TEM_Max_OTime': '最高气温出现时间',\n",
       " 'TEM_Min': '最低气温',\n",
       " 'TEM_Min_OTime': '最低气温出现时间',\n",
       " 'GST_Min_12h': '过去12小时地面最低温度',\n",
       " 'TEM_Max_24h': '过去24小时最高气温',\n",
       " 'TEM_Min_24h': '过去24小时最低气温',\n",
       " 'GST_5cm': '5cm地温',\n",
       " 'GST_10cm': '10cm地温',\n",
       " 'GST_15cm': '15cm地温',\n",
       " 'GST_20cm': '20cm地温',\n",
       " 'GST_40Cm': '40cm地温',\n",
       " 'GST_80cm': '80cm地温',\n",
       " 'GST_160cm': '160cm地温',\n",
       " 'GST_320cm': '320cm地温',\n",
       " 'GST': '地面温度',\n",
       " 'GST_Min': '最低地面温度',\n",
       " 'GST_Min_OTime': '最低地面温度出现时间',\n",
       " 'GST_Max': '最高地面温度',\n",
       " 'GST_Max_Otime': '最高地面温度出现时间',\n",
       " 'LGST': '草面(雪面)温度',\n",
       " 'LGST_Max': '草面(雪面)最高温度',\n",
       " 'LGST_Max_OTime': '草面(雪面)最高温度出现时间',\n",
       " 'LGST_Min': '草面(雪面)最低温度',\n",
       " 'LGST_Min_OTime': '草面(雪面)最低温度出现时间',\n",
       " 'TEM_ChANGE_24h': '过去24小时变温',\n",
       " 'RHU': '相对湿度',\n",
       " 'VAP': '水汽压',\n",
       " 'RHU_Min': '最小相对湿度',\n",
       " 'RHU_Min_OTIME': '最小相对湿度出现时间',\n",
       " 'PRE': '降水量',\n",
       " 'Snow_Depth': '积雪深度计算值',\n",
       " 'PRE_1h': '过去1小时降水量',\n",
       " 'PRE_3h': '过去3小时降水量',\n",
       " 'PRE_6h': '过去6小时降水量',\n",
       " 'PRE_12h': '过去12小时降水量',\n",
       " 'PRE_24h': '过去24小时降水量',\n",
       " 'EVP_Big': '蒸发(大型)',\n",
       " 'V13196': '蒸发水位',\n",
       " 'Snow_PRS': '积雪雪压',\n",
       " 'VIS': '水平能见度(人工)',\n",
       " 'VIS_HOR_1MI': '1分钟平均能见度',\n",
       " 'VIS_HOR_10MI': '10分钟平均能见度',\n",
       " 'WEP_Now': '现在天气',\n",
       " 'V20003_1': '现在天气计算值',\n",
       " 'WEP_Past_1': '过去天气1',\n",
       " 'V20004_1': '过去天气1计算值',\n",
       " 'WEP_Past_2': '过去天气2',\n",
       " 'V20005_1': '过去天气2计算值',\n",
       " 'CLO_Cov': '总云量计算值',\n",
       " 'CLO_COV_LM': '云量(低云或中云)',\n",
       " 'CLO_Height_LoM': '云底高度计算值',\n",
       " 'CLO_Cov_Low': '低云量',\n",
       " 'VIS_Min': '最小水平能见度',\n",
       " 'VIS_Min_OTime': '最小水平能见度出现时间',\n",
       " 'SCO': '地面状态',\n",
       " 'V20214': '冰雹重量',\n",
       " 'Dew': '露是否出现计算值',\n",
       " 'Frost': '霜是否出现计算值',\n",
       " 'ICE': '结冰是否出现计算值',\n",
       " 'GSS': '积雪是否出现计算值',\n",
       " 'SoRi': '雾凇是否出现计算值',\n",
       " 'Glaze': '雨凇是否出现计算值',\n",
       " 'V20303_1': '天气现象摘要计算值',\n",
       " 'WEP_Record': '天气现象记录',\n",
       " 'V20304_1': '天气现象记录计算值',\n",
       " 'EICE': '电线积冰-现象是否出现计算值',\n",
       " 'EICET_NS': '电线积冰-南北方向厚度',\n",
       " 'EICET_WE': '电线积冰-东西方向厚度',\n",
       " 'EICEW_NS': '电线积冰-南北方向重量',\n",
       " 'EICEW_WE': '电线积冰-东西方向重量',\n",
       " 'EICED_NS': '电线积冰-南北方向直径',\n",
       " 'EICED_WE': '电线积冰-东西方向直径',\n",
       " 'FRS_1st_Top': '第一冻土层上界值计算值',\n",
       " 'FRS_2nd_Top': '第二冻土层上界值计算值',\n",
       " 'FRS_1st_Bot': '第一冻土层下界值计算值',\n",
       " 'FRS_2nd_Bot': '第二冻土层下界值计算值',\n",
       " 'CLO_FOME_1': '云状1',\n",
       " 'CLO_Fome_2': '云状2',\n",
       " 'CLO_Fome_3': '云状3',\n",
       " 'CLO_Fome_4': '云状4',\n",
       " 'CLO_FOME_5': '云状5',\n",
       " 'CLO_FOME_6': '云状6',\n",
       " 'CLO_FOME_7': '云状7',\n",
       " 'CLO_FOME_8': '云状8',\n",
       " 'CLO_Fome_Low': '低云状',\n",
       " 'CLO_Fome_MID': '中云状',\n",
       " 'CLO_Fome_High': '高云状',\n",
       " 'REP_CORR_ID': '更正报标志',\n",
       " 'RETAIN1': '保留字段1',\n",
       " 'V_RETAIN10': '保留字段10',\n",
       " 'RETAIN2': '保留字段2',\n",
       " 'RETAIN3': '保留字段3',\n",
       " 'V_RETAIN4': '保留字段4',\n",
       " 'V_RETAIN5': '保留字段5',\n",
       " 'V_RETAIN6': '保留字段6',\n",
       " 'V_RETAIN7': '保留字段7',\n",
       " 'V_RETAIN8': '保留字段8',\n",
       " 'V_RETAIN9': '保留字段9',\n",
       " 'V_RETAIN_OLD1': '保留字段旧1',\n",
       " 'V_RETAIN_OLD10': '保留字段旧10',\n",
       " 'V_RETAIN_OLD11': '保留字段旧11',\n",
       " 'V_RETAIN_OLD12': '保留字段旧12',\n",
       " 'V_RETAIN_OLD13': '保留字段旧13',\n",
       " 'V_RETAIN_OLD14': '保留字段旧14',\n",
       " 'V_RETAIN_OLD2': '保留字段旧2',\n",
       " 'V_RETAIN_OLD3': '保留字段旧3',\n",
       " 'V_RETAIN_OLD4': '保留字段旧4',\n",
       " 'V_RETAIN_OLD5': '保留字段旧5',\n",
       " 'V_RETAIN_OLD6': '保留字段旧6',\n",
       " 'V_RETAIN_OLD7': '保留字段旧7',\n",
       " 'V_RETAIN_OLD8': '保留字段旧8',\n",
       " 'V_RETAIN_OLD9': '保留字段旧9'}"
      ]
     },
     "execution_count": 85,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dict(zip(list(elementDict.keys()),map(lambda x:elementDict[x]['name'],list(elementDict.keys()))))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "98035d17-2eb0-4ec6-ab47-d6ca6cd86273",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "aa232158-545d-4671-b5d3-5067edea5eb5",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "42c6e0b0-3b13-4816-beda-e9b52a42f013",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [conda env:webdev]",
   "language": "python",
   "name": "conda-env-webdev-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
